
package Migue;

public class conversiones2 {
    //float->double->string->int.
public static void main(String[] args) {
    Float flo =(float)0.0;
    System.out.print("Float: "+flo+"-> ");

    Double dou= flo.doubleValue();
    System.out.print("Double: "+dou+"-> ");

    String str= dou.toString();
    System.out.print("String: "+ str+"-> ");

    System.out.println("int: "+Integer.parseInt(str.substring(0,str.length()-2))+".");
}
}
